<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>医院库房管理系统|医生信息管理</title>

    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet">

    <link th:href="@{/css/animate.css}" rel="stylesheet">
    <link th:href="@{/css/style.css}" rel="stylesheet">

</head>
<body>
<div id="wrapper">
    <div th:replace="/manager/manager_page :: manager_nav(activeUri='Do')">
    </div>
    <div id="page-wrapper" class="gray-bg">
        <!--标题-->
        <div th:include="/manager/manager_page :: manager_title"></div>
        <!--主体内容-->
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>医生信息</h2>
                <ol class="breadcrumb">
                    <li>
                        <a th:href="@{/manager/index}">首页</a>
                    </li>
                    <li class="active">
                        <a th:href="@{/manager/warehousingInfo}">信息管理</a>
                    </li>
                </ol>
            </div>
        </div>
        <!--搜索-->
        <div class="wrapper wrapper-content animated fadeInRight ecommerce">


<!--            <div class="ibox-content m-b-sm border-bottom">-->
<!--                <form th:action="@{/manager/doctorInfo}" >-->
<!--                    <div class="row">-->
<!--                        <div class="col-sm-4">-->
<!--                            <div class="form-group">-->

<!--                                <input type="text"  name="search_id" placeholder="医师工号" value="" class="form-control">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="col-sm-4">-->
<!--                            <div class="form-group">-->

<!--                                <input type="text"  name="search_name" placeholder="医师姓名" value="" class="form-control">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="col-sm-4">-->
<!--                            <div class="form-group">-->

<!--                                <input type="text" name="search_phone" placeholder="医生电话" value="" class="form-control">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <div class="row">-->
<!--                        <div class="text-center"><input class="btn btn-info  dim" type="submit" value="搜索"/></div>-->
<!--                    </div>-->
<!--                </form>-->
<!--            </div>-->
        <!--表单-->
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox">
                        <div class="ibox-content">
                            <!--添加-->
                            <button type="button"  class="btn btn-success  dim" data-toggle="modal"  th:attr="data-target='#Add'">添加医生</button>
                            <div class="modal inmodal" th:attr="id='Add'" tabindex="-1" role="dialog"  aria-hidden="true">
                                <div class="modal-dialog">
                                    <form th:action="@{/manager/doctorInfo/adddoc}" method="post" >
                                        <div class="modal-content animated fadeIn">
                                            <div class="modal-header">
                                                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                                <i class="fa"><h3>添加医生</h3></i>
                                            </div>
                                            <div class="modal-body">
                                                <div class="form-group">
                                                    <div class="col-sm-3 control-label">
                                                        <h4 style="padding-top: 5px">医生工号:</h4>
                                                    </div>
                                                    <div class="col-sm-7">
                                                        <input class="form-control" name="docId" value="" >
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="modal-body">
                                                <div class="form-group">
                                                    <div class="col-sm-3 control-label">
                                                        <h4 style="padding-top: 5px">医生姓名:</h4>
                                                    </div>
                                                    <div class="col-sm-7">
                                                        <input class="form-control" name="name" value="">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="modal-body">
                                                <div class="form-group">
                                                    <div class="col-sm-3 control-label">
                                                        <h4 style="padding-top: 5px">医生职位:</h4>
                                                    </div>
                                                    <div class="col-sm-7">
                                                        <input class="form-control" name="Protitle" value="">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="modal-body">
                                                <div class="form-group">
                                                    <div class="col-sm-3 control-label">
                                                        <h4 style="padding-top: 5px">电话:</h4>
                                                    </div>
                                                    <div class="col-sm-7">
                                                        <input class="form-control" name="phone" value="" >
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="modal-footer">
                                                <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                <input type="submit" class="btn btn-success  dim" value="添加材料"/>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            <!--表单开始-->
                            <table class="footable table table-bordered toggle-arrow-tiny" data-page-size="10">
                                <thead>
                                <tr>
                                    <th class="text-center" data-sortable="true">id</th>
                                    <th class="text-center" data-hide="phone">医师工号</th>
                                    <th class="text-center" data-hide="phone" >医师姓名</th>
                                    <th class="text-center" data-hide="phone" >医师职位</th>
                                    <th class="text-center" data-hide="phone" >医师电话</th>
                                    <th class="text-center">操作</th>

                                </tr>
                                </thead>
                                <tbody>
                                <tr th:each="doc:${docInfo}">
                                    <td class="text-center"  th:text="${doc.id}">
                                        id
                                    </td>
                                    <td class="text-center"  th:text="${doc.docId}">
                                        医师工号
                                    </td>
                                    <td class="text-center" th:text="${doc.name}">
                                        医师姓名
                                    </td>
                                    <td class="text-center"   th:text="${doc.protitle}" >
                                        医师职位
                                    </td>
                                    <td class="text-center" th:text="${doc.phone}">
                                        医师电话
                                    </td>
                                    <td class="text-center">
                                        <div class="btn-group">
                                            <button type="button" class="btn-white btn btn-xs"  data-toggle="modal" th:attr="data-target='#DocInfo'+${doc.id}">编辑医师</button>
                                            <!--编辑功能弹窗-->
                                            <div class="modal inmodal" th:attr="id='DocInfo'+${doc.id}" tabindex="-1" role="dialog"  aria-hidden="true">
                                                <div class="modal-dialog">
                                                    <form th:action="@{/manager/wareHousingInfo/DocInfo(DocInfo=${doc.id})}" method="post">
                                                        <div class="modal-content animated fadeIn">
                                                            <div class="modal-header">
                                                                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<!--                                                                <i class="fa  modal-icon"><img width="128" height="128" th:src="@{'/img//'+${use.getImages()}}"></i>-->
                                                            </div>
                                                            <div class="modal-body">
                                                                <div class="form-group">
                                                                    <div class="col-sm-3 control-label">
                                                                        <h4 style="padding-top: 5px">医师姓名:</h4>
                                                                    </div>
                                                                    <div class="col-sm-7">
                                                                        <input class="form-control" name="name" th:value="${doc.name}">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="modal-body">
                                                                <div class="form-group">
                                                                    <div class="col-sm-3 control-label">
                                                                        <h4 style="padding-top: 5px">医师职位:</h4>
                                                                    </div>
                                                                    <div class="col-sm-7">
                                                                        <input class="form-control" name="protitle" th:value="${doc.protitle}">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="modal-body">
                                                                <div class="form-group">
                                                                    <div class="col-sm-3 control-label">
                                                                        <h4 style="padding-top: 5px">医师电话:</h4>
                                                                    </div>
                                                                    <div class="col-sm-7">
                                                                        <input class="form-control" name="phone" th:value="${doc.phone}">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="modal-footer">
                                                                <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                                <input type="submit" class="btn btn-primary" value="更改"/>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            <!--修改库存-->
                                            <a class="btn-white btn btn-xs" th:href="@{/manager/doctorInfo/passwd(doc_id=${doc.id}) }">重置密码</a>
                                            <a class="btn-white btn btn-xs" th:if="${doc.getAdminStatus()}==0" th:href="@{/manager/doctorInfo/status(doc_id=${doc.id})}" th:text="${doc.getStatus()==1?'暂停账户':'激活账户'}"></a>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                                <tfoot>
                                <tr>
                                    <td colspan="12" class="footable-visible">
                                        <ul class="pagination pull-right" style="margin-bottom: 0px;margin-top: 0px;">
                                            <li class="footable-page-arrow" th:if="${IPage.getCurrent()!= 1}">
                                                <a data-page="first" th:href="@{/manager/doctorInfo/(page=1)}" th:text="首页">
                                                </a>
                                            </li>
                                            <li class="footable-page-arrow " th:if="${IPage.getCurrent()!=1}">
                                                <a data-page="prev" th:href="@{/manager/doctorInfo/(page=${IPage.getCurrent()-1})}">
                                                    <
                                                </a>
                                            </li>
                                            <li class="footable-page active">
                                                <a data-page="0"  th:text="${IPage.getCurrent()}">
                                                </a>
                                            </li>
                                            <li class="footable-page-arrow" th:if="${IPage.getCurrent()!=IPage.getPages()}">
                                                <a data-page="next" th:href="@{/manager/doctorInfo/(page=${IPage.getCurrent()+1})}">
                                                    >
                                                </a>
                                            </li>
                                            <li class="footable-page-arrow" th:if="${IPage.getCurrent()!=IPage.getPages()}" >
                                                <a data-page="last"  th:href="@{/manager/doctorInfo/(page=${IPage.getPages()})}" th:text="末页">
                                                </a>
                                            </li>
                                        </ul>
                                    </td>
                                </tr>
                                </tfoot>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--底部-->
        <div class="footer" th:include="/manager/manager_page :: manager_footer"></div>
    </div>
</div>
    <!-- Mainly scripts -->
    <script th:src="@{/js/jquery-2.1.1.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
    <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>

    <!-- Custom and plugin javascript -->
    <script th:src="@{/js/inspinia.js}"></script>
    <script th:src="@{/js/plugins/pace/pace.min.js}"></script>

</body>
</html>